# coding: utf-8

from flask_wtf import FlaskForm
from wtforms import IntegerField, SubmitField, FloatField
from wtforms.validators import DataRequired


class BorrowForm(FlaskForm):
    book_id = IntegerField('book_id', validators=[DataRequired()])
    submit = SubmitField('借书')

class ReturnForm(FlaskForm):
    borrow_book_id = IntegerField('borrow_book_id', validators=[DataRequired()])
    submit = SubmitField('还书')

class PayForm(FlaskForm):
    borrow_book_id = IntegerField('borrow_book_id', validators=[DataRequired()])
    overdue_fee = FloatField('overdue_fee', validators=[DataRequired()])
    submit = SubmitField('支付费用')